@import '_reset.less';

html, body {
    height: 100%;
}
.fltL {
    float: left;
}
.fltR {
    float: right;
}

.fakeHeight {
    width: 100%;
    height: 10%;
}
.wrap {
    width: 900px;
    height: 525px;
    margin: 0 auto;
    padding: 10px;
    background: #fff;
    border: 8px solid #B7B7B7;
    border-radius: 5px;
    .preview-box {
        width: 445px;
        height: 100%;
        .tab {
            width: 100%;
            height: 32px;
            line-height: 32px;
            font-size: 12px;
            font-weight: bold;
            list-style: none;
            position: relative;
            z-index: 9;
            li {
                width: 100px;
                height: 100%;
                margin: 0 5px 0 0;
                background: #efefef;
                border: solid #ddd;
                border-width: 1px 1px 0 1px;
                border-radius: 5px 5px 0 0;
                color: #666;
                display: inline-block;
                text-align: center;
                cursor: pointer;
                &.curr {
                    background: #fff;
                    color: #267301;
                }
                &:hover {
                    background: #fff;
                }
            }
        }
        .wrap-box {
            width: 100%;
            height: 493px;
            border: 1px solid #ddd;
            border-radius: 0 5px 5px 5px;
            position: relative;
            z-index: 10;
            &.upload-box {
                .ico {
                    width: 100px;
                    height: auto;
                    margin: 150px auto 30px auto;
                    display: block;
                }
                .panel {
                    list-style: none;
                    text-align: center;
                    li {
                        margin: 0 5px;
                        display: inline-block;
                        a {
                            width: 100px;
                            height: 40px;
                            line-height: 40px;
                            background: #78cd4f;
                            color: #fff;
                            text-align: center;
                            display: block;
                            text-decoration: none;
                            &#choiceModelBtn {
                                background: #c6c6c6;
                            }
                            &:hover {
                                opacity: .7;
                            }
                            &:active {
                                opacity: .9;
                            }
                        }
                    }
                }
                #uploadElement, #tmpPIC {
                    display: none;
                }
            }
            &.model-box {
                list-style: none;
                .fix {
                    width: 94%;
                    height: 100%;
                    margin: 0 auto;
                }
                #modelList {
                    width: 100%;
                    height: 91%;
                    margin: 20px 0 0 0;
                    overflow: auto;
                    li {
                        margin: 5px 10px;
                        border: 1px solid #eee;
                        padding: 5px;
                        display: inline-block;
                        &:hover {
                            opacity: .7;
                        }
                        a {
                            width: 100px;
                            height: 100px;
                            background: no-repeat center;
                            background-size: 100%;
                            display: block;
                        }
                    }
                }
            }
            &.view-box {
                .fix {
                    width: 90%;
                    height: 455px;
                    margin: 0 auto;
                    position: relative;
                }
                #editZone {
                    width: 100%;
                    height: 100%;
                    margin: 20px 0 0 ;
                    background: no-repeat center;
                    background-size: 100%;
                    overflow: hidden;
                    position: relative;
                    z-index: 5;
                    #glassElement {
                        width: 200px;
                        height: auto;
                        top: 50px;
                        left: 50px;
                        position: absolute;
                        z-index: 5;
                        cursor: move;
                        transform: scale(1);
                    }
                }
                .glass-panel {
                    right: 10px;
                    bottom: 10px;
                    list-style: none;
                    position: absolute;
                    z-index: 9;
                    li {
                        display: inline-block;
                        a {
                            width: 50px;
                            height: 50px;
                            margin: 0 0 0 10px;
                            background: #fff no-repeat;
                            background-size: 100%;
                            border: 1px solid #ddd;
                            border-radius: 5px;
                            display: block;
                            &#zoom {
                                background-image: url('../img/zoom-icon.png');
                            }
                            &#zoomOut {
                                background-image: url('../img/zoom-out-icon.png');
                            }
                        }
                    }
                }
            }
        }
    }
    .item-box {
        width: 430px;
        height: 100%;
        border: 1px solid #ddd;
        border-radius: 5px;
        .information-box {
            width: 100%;
            height: 30px;
            line-height: 30px;
            background: #fbfbfb;
            border-bottom: 1px solid #ddd;
            overflow: hidden;
            font-size: 12px;
            .fix {
                width: 94%;
                margin: 0 auto;
            }
            a {
                color: #666;
                text-decoration: none;
                font-weight: bold;
                &:hover {
                    color: #267301;
                    text-decoration: underline;
                }
            }
            p {
                color: #666;
                font-weight: bold;
            }
        }
        .glass-box {
            width: 100%;
            margin: 20px 0 0 0;
            overflow: hidden;
            .fix {
                width: 94%;
                margin: 0 auto;
            }
            #glassList {
                width: 100%;
                height: 450px;
                overflow: auto;
                list-style: none;
                li {
                    width: 125px;
                    padding: 10px 0;
                    border-bottom: 1px dashed #ddd;
                    float: left;
                    text-align: center;
                    a {
                        width: 100%;
                        height: 100%;
                        color: green;
                        font-size: 12px;
                        text-decoration: none;
                        display: block;
                        &:hover {
                            background: #eee;
                        }
                    }
                    .thumb {
                        width: 100px;
                        height: 50px;
                        margin: 0 auto 10px auto;
                        background: no-repeat center;
                        background-size: 100%;
                    }
                }
            }
        }
    }
}